import request from '@/utils/request'

// 考核计划相关 API
export const assessmentApi = {
    // 获取全部考核计划
    getAllPlans() {
        return request.get('/api/assessment/getAllPln')
    },

    // 获取考核计划详情
    getPlanDetail(planId) {
        return request.get(`/api/assessment/getPlanDetail/${planId}`)
    },

    // 获取考核人员列表
    getPlanPersonnel(planId) {
        return request.get(`/api/assessment/getPlanPersonnel/${planId}`)
    },

    // 提交考核结果
    submitAssessmentResult(data) {
        return request.post('/api/assessment/submitResult', data)
    },

    // 获取考核指标
    getAssessmentIndicators(planId) {
        return request.get(`/api/assessment/getIndicators/${planId}`)
    }
}